package com.chima.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.chima.domain.Employees;
import com.chima.domain.PageRequestBean;
import com.chima.domain.PageResponseBean;
import com.chima.domain.Performance;
import com.chima.domain.Rate;
@Transactional
public interface PerformanceService {
	public PageResponseBean findPerformance(PageRequestBean pageRequestBean);
	public void updatePerformance(Performance performance); 
	public void savePerformance(Performance performance);
	public void addBatch(Performance performance) ;
//	public List<Performance> findByDateAndDepart( String date, int depart);
//	public Double findMaxTotalCount(String date, int depart);
//	public Double findMinTotalCount(String date, int depart ); 
	public void updateTotalTime(Double totaltime  ,Employees  employee); 
//	public void updateFen(int chengxu ,Double JINJIZHYAO,Double JINJIBUZHYAO,Double BUJINZHYAO ,Double BUJINBUZHYAO,Double CHUANGXIN,Double totalCount,Employees employee,int yiji,int erji,int sanji, int siji);
	public void updateFen(int chengxu ,Double JINJIZHYAO,Double JINJIBUZHYAO,Double BUJINZHYAO ,Double BUJINBUZHYAO,Double totalCount,Employees employee,int yiji,int erji,int sanji, int siji);
	public List<Rate> findRateByDateAndDepart(String date, int depart);
	public void updateTotalTime(Double totaltime  ,int  id); 
	
	//计算奖金
	public PageResponseBean countPerformance(PageRequestBean pageRequestBean);
	public List<Performance> findByDateAndDepartment( String date, int depart);
	public Performance findById( int id);
	
	public void saveOrupdatePerformance( Employees  employee,double totalcoffer,double empcoffe,String date,double reward);
	public PageResponseBean findEmpPerformance(PageRequestBean pageRequestBean);
	
	public void DeletePerformance(int empid);
	
	public List<Performance> findByDate( String date);
	public List<Performance> findallEmpPerformanceBydate(String searchdate);
}
